package com.xxl.job.executor.sample.frameless.test.strategy_mode_plus;

//应用
public class Main {
    public static void main(String[] args) {
        Context context;

        context = new Context(new IntReduceTwoStrategy());
        System.out.println(context.operate(123));

        System.out.println("**********");

        context = new Context(new IntReduceTwoStrategy());
        System.out.println(context.operate("123"));

        System.out.println("**********");

        context = new Context(new StringReduceTwoStrategy());
        System.out.println(context.operate("123"));

        System.out.println("**********");

        context = new Context(new StringReduceTwoStrategy());
        System.out.println(context.operate(123));

    }
}
